//获取全局应用
const app = getApp();


//创建界面
Page({
  onLoad(){
      
  },
  toGo(e){
    wx.showLoading({
      title: '加载中...',
    })
    let url = e.currentTarget.dataset.url
    wx.navigateTo({
      url: `/pages/${url}/${url}`,
      success: (result) => {},
      fail: (res) => {
        wx.showToast({
          title: '网络错误',
          icon: 'error',
        })
       },
       complete: (res) => {
         wx.hideLoading()
       },
    })
  },
})